package com.jddup.context;

import com.jddup.common.pojo.TableMeta;

import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by ZZB on 2017/12/4.
 */
public class EntityTableMetaContext {
    private static Map<String,TableMeta> entityTableMetaMap = new HashMap<>();
    private static Map<String,String> entityDataSourceMap = new HashMap<>();
    private static Map<String,String> tableDataSourceMap = new HashMap<>();

    private static Map<String,TableMeta> dbTableMetaMap = new HashMap<>();
    private static Map<String,String> dbDataSourceMap = new HashMap<>();

    public static Map<String, TableMeta> getEntityTableMetaMap() {
        return entityTableMetaMap;
    }

    public static Map<String, String> getTableDataSourceMap() {
        return tableDataSourceMap;
    }

    public static Map<String, TableMeta> getDbTableMetaMap() {
        return dbTableMetaMap;
    }

    public static Map<String, String> getEntityDataSourceMap() {
        return entityDataSourceMap;
    }

    public static Map<String, String> getDbDataSourceMap() {
        return dbDataSourceMap;
    }
}
